<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title>$this 练习</title>
</head>
<body>
<?php 
class Person 
{

	var $name;
	var $age;
	var $sex;
	function say(){
		echo $this->name."人在说话"."<br>";

	}
	function eat(){
		echo $this->name."人在吃"."<br>";


	}
	function run(){
			echo "这个人在跑"."<br>";


	}
}
$p1=new Person();
$p2=new Person();
$p1->name="weiyingyue";
$p2->name="lisi";
$p1->say();
$p2->say();
 ?>
</body>
</html>